<template>
	<navbar title="代理列表" :isBack="true"></navbar>
	<view class="" v-if="list.length <= 0">
		<nodata></nodata>
	</view>
	<view class="" v-if="list.length > 0" style="width: 100%;height: 100vh;background-color: #F9F9F9;padding: 30rpx;">
		<view class="" v-for="item in list"
			style="width: 100%;background-color: white;height: 98rpx;border-radius: 10rpx;display: flex;justify-content: space-between;align-items: center;margin-bottom: 20rpx;padding: 0 20rpx;">
			<view class="">
				<span style="font-weight: bold;">{{item.name}}</span>
				<span>（{{item.mobile}}）</span>
			</view>
			<view class="" style="font-weight: bold;">
				￥{{item.achievement}}
			</view>
		</view>
	</view>
</template>

<script setup lang="ts">
	import {
		onLoad,
		onShareAppMessage,
		onShareTimeline,
		onReachBottom
	} from '@dcloudio/uni-app'
	import nodata from '@/components/nodata.vue'
	import {
		reactive,
		ref
	} from 'vue'
	import {
		dlUser
	} from '@/service/api/index'
	import tools from '@/utils/tools'
	const list = ref([])
	onLoad(() => {
		getData()
	})
	const getData = async () => {
		const res = await dlUser("");
		list.value = res.msg
	}
</script>

<style scoped lang="scss">
</style>